#ifndef __CC_WIFI__
#define __CC_WIFI__

#include <PubSubClient.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>

#include "cc_core.h"
#include "cc_log.h"
#include "cc_msg.h"

#define CC_WIFI_NO_SHIELD       (WL_NO_SHIELD)
#define CC_WIFI_IDLE_STATUS     (WL_IDLE_STATUS)
#define CC_WIFI_NO_SSID_AVAIL   (WL_NO_SSID_AVAIL)
#define CC_WIFI_SCAN_COMPLETED  (WL_SCAN_COMPLETED)
#define CC_WIFI_CONNECTED       (WL_CONNECTED)
#define CC_WIFI_CONNECT_FAILED  (WL_CONNECT_FAILED)
#define CC_WIFI_CONNECTION_LOST (WL_CONNECTION_LOST)
#define CC_WIFI_DISCONNECTED    (WL_DISCONNECTED)
typedef wl_status_t cc_wifi_status;

int cc_wifi_init();
int cc_get_wifi_state();
int cc_wifi_disconnect();

#endif